<?php
//use Zend\Form\Element;

$title = 'My images';
$this->headTitle($title);
$this->path = '/home/bupiotr/.apps/http/__default__/0/Zf_2downloads/1.0.0/data/uploads_images';
//$this->setAttribute('method', 'post');
?>

<div class="well well-small">
    <h3><?php echo $this->escapeHtml($title);?></h3>
</div>


<table class="table">
 <tr>
     <th>Image</th>
     <th>Label</th>
     <th>Action</th>
     
 </tr>
 <?php foreach ($this->myUploads as $myUpload) : ?>
 <tr> 
     <td><a href="<?php echo $this->url('mediamanager', array('action'=>'showimageform','id' => $myUpload->id ));?>" >
     <img src="<?php echo $this->url('mediamanager',array('action'=>'showImage','id' => $myUpload->id,'subaction' => 'thumb'));?>" /><br>
     <?php echo $this->escapeHtml($myUpload->filename);?>
     </a></td>
     
     <td><?php echo $this->escapeHtml($myUpload->label);?></td>
     <td>      
         <a href="<?php echo $this->url('mediamanager', array('action'=>'delete', 'id' => $myUpload->id));?>" > Delete</a>
     </td>
 </tr>
 <?php endforeach; ?>
 </table>
 
  <p>
     <a class="btn" href="<?php echo $this->url('mediamanager', array('action'=>'add'));?>">Add a new upload</a>
 </p>